﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using MINERP.BLL.DisjoinProForOutShop;
using MINERP.MODEL.FoundationModel;

namespace MINERP.DisjoinProForOutShop.Forms
{
    public partial class FrmSearch : Form
    {
        public FrmSearch(List<string> inList)
        {
            InitializeComponent();
            listShopName = inList.OrderBy(s => s).ToList();
        }
        DisJoinBLL2_Fuji _bll = new DisJoinBLL2_Fuji();
        public delegate void SendSearch(int shopId,string shopName);
        public event SendSearch SendGridColor;
        public List<string> listShopName = new List<string>();
        private void FrmSearch_Load(object sender, EventArgs e)
        {

            comboBoxShopList.DataSource = listShopName;
        }

        private void btnSure_Click(object sender, EventArgs e)
        {
               shopName = comboBoxShopList.Text;    
                SendGridColor(shopid, shopName);
                this.Close();
           
        }
        int shopid = 0;
        string shopName="";

        private void comboBoxShopList_DropDownClosed(object sender, EventArgs e)
        {
            shopName = comboBoxShopList.Text;    
           
        }
       
    }
}
